import request from '../../utils/request';
import dimisUrl from '../urls/dimis'


//添加离职信息
export const addDimis = data => {
  return request({
    headers: {
      "Content-Type": "application/json"
    },
    url: dimisUrl.addDimisUrl,
    method: 'post',
    data: data
  });
};

//根据参数获取离职信息
export const fetchDimis = data => {
  return request({
    url: dimisUrl.fetchDimisUrl,
    method: 'get',
    params: data
  });
};


//离职员工报表，根据上传的参数分页查询
export const fetchDimisByTime = data => {
  return request({
    url: dimisUrl.fetchDimisByTimeUrl,
    method: 'get',
    params: data
  });
};
